package com.dhwl.hsh.lib.bean.resp;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;

/**
 * Created by hjd on 2016/5/26.
 */
public class UserAuthResp implements Serializable, Parcelable {

    String mobile;//手机号码
    String storeAddress;//商户地址
    boolean cardAuthenState;//身份是否已认证
    boolean merchantAuthenState;//商户是否已认证
    boolean carAuthenState;//车辆是否已认证
    String cardPic1;//身份证正面照片url
    String cardPic2;//身份证反面照片url
    String storePic1;//营业证照片url
    String storePic2;//店面照片url
    String driverPic1;//驾驶证照片url
    String driverPic2;//行驶证正页照片url
    String driverPic3;//车辆照片url

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getStoreAddress() {
        return storeAddress;
    }

    public void setStoreAddress(String storeAddress) {
        this.storeAddress = storeAddress;
    }

    public boolean isCardAuthenState() {
        return cardAuthenState;
    }

    public void setCardAuthenState(boolean cardAuthenState) {
        this.cardAuthenState = cardAuthenState;
    }

    public boolean isMerchantAuthenState() {
        return merchantAuthenState;
    }

    public void setMerchantAuthenState(boolean merchantAuthenState) {
        this.merchantAuthenState = merchantAuthenState;
    }

    public boolean isCarAuthenState() {
        return carAuthenState;
    }

    public void setCarAuthenState(boolean carAuthenState) {
        this.carAuthenState = carAuthenState;
    }

    public String getCardPic1() {
        return cardPic1;
    }

    public void setCardPic1(String cardPic1) {
        this.cardPic1 = cardPic1;
    }

    public String getCardPic2() {
        return cardPic2;
    }

    public void setCardPic2(String cardPic2) {
        this.cardPic2 = cardPic2;
    }

    public String getStorePic1() {
        return storePic1;
    }

    public void setStorePic1(String storePic1) {
        this.storePic1 = storePic1;
    }

    public String getStorePic2() {
        return storePic2;
    }

    public void setStorePic2(String storePic2) {
        this.storePic2 = storePic2;
    }

    public String getDriverPic1() {
        return driverPic1;
    }

    public void setDriverPic1(String driverPic1) {
        this.driverPic1 = driverPic1;
    }

    public String getDriverPic2() {
        return driverPic2;
    }

    public void setDriverPic2(String driverPic2) {
        this.driverPic2 = driverPic2;
    }

    public String getDriverPic3() {
        return driverPic3;
    }

    public void setDriverPic3(String driverPic3) {
        this.driverPic3 = driverPic3;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.mobile);
        dest.writeString(this.storeAddress);
        dest.writeByte(this.cardAuthenState ? (byte) 1 : (byte) 0);
        dest.writeByte(this.merchantAuthenState ? (byte) 1 : (byte) 0);
        dest.writeByte(this.carAuthenState ? (byte) 1 : (byte) 0);
        dest.writeString(this.cardPic1);
        dest.writeString(this.cardPic2);
        dest.writeString(this.storePic1);
        dest.writeString(this.storePic2);
        dest.writeString(this.driverPic1);
        dest.writeString(this.driverPic2);
        dest.writeString(this.driverPic3);
    }

    public UserAuthResp() {
    }

    protected UserAuthResp(Parcel in) {
        this.mobile = in.readString();
        this.storeAddress = in.readString();
        this.cardAuthenState = in.readByte() != 0;
        this.merchantAuthenState = in.readByte() != 0;
        this.carAuthenState = in.readByte() != 0;
        this.cardPic1 = in.readString();
        this.cardPic2 = in.readString();
        this.storePic1 = in.readString();
        this.storePic2 = in.readString();
        this.driverPic1 = in.readString();
        this.driverPic2 = in.readString();
        this.driverPic3 = in.readString();
    }

    public static final Parcelable.Creator<UserAuthResp> CREATOR = new Parcelable.Creator<UserAuthResp>() {
        @Override
        public UserAuthResp createFromParcel(Parcel source) {
            return new UserAuthResp(source);
        }

        @Override
        public UserAuthResp[] newArray(int size) {
            return new UserAuthResp[size];
        }
    };
}
